package com.qqin.mapper;

import com.qqin.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface GoodsMapper {
    List<Goods> selectAll();

    Goods selectById(Integer goodsId);

    List<Goods> selectByListed();

    List<Goods> selectByCondition(String goodsName);

    List<Goods> selectByAny(Goods goods);

    void add(Goods goods);

    void updateById(Goods goods);

    void sale(Integer goodsId);

    void sold(Integer goodsId);

    void delisting(Integer goodsId);

}
